<html>
<head>
</head>
<body>
	<div id="body"></div>
</body>
</html>
<script type="text/javascript">
var flowName = 'FallbackAgreement';
var flowType = 'Agreement';
window.prompt("setFlow", "{'params':['"+flowType+"']}");
window.prompt("setFlowName", "{'params':['"+flowName+"']}");

    window.prompt("getPreferenceBoolean","{'params':['s#ges#gc1%dns#gO1%dt1%dus#gc1%dt1%dr1%dos#gh1%ds',false],'callback':{'method':'doDropIconOffer','type': true}}");
    
    function doDropIconOffer(alreadyShowedOffer) {
		if (alreadyShowedOffer == false) {
		    window.prompt("openReport", "{'params':[ 'S', '']}");
		    showAgreement();
		    
		}
	
    }

    function showAgreement() {
		window.prompt("showDialog","{\"params\": [\"<!DOCTYPE html><head><meta name='viewport'content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no' /><style type='text/css'>* {padding: 0;margin: 0;}html,body {height: 100%;scrol-y: none;-webkit-box-sizing: border-box;}#wrapper {width: 100%;position: relative;margin: 1em 0 0 0;overflow: auto;}a {color: #000;text-decoration: none;}body {background-color: #dcdede;font-family: Arial;font-size: 0.8em;}#content {margin: 0 2em;}#title {font-size: 1.5em;border-bottom: 2px solid #0cb3f2;height: 10%;line-height: auto;text-align: center;min-width: 240px;}#main-text {height: 90%;width: 100%;font-size: 1.3em;}#sub-title {margin-top: 2em;border-bottom: 1px solid #bdbebe;margin-bottom: 1em;}p {margin: 0 2em 1em 0;min-width: 240px;}#mag-glass {width: 49px;height: 49px;float: left;background:url()no-repeat;padding: 5px;}.btn {display: inline-block;zoom: 1; /* zoom and *display = ie7 hack for display:inline-block */*display: inline;vertical-align: baseline;margin: 0 2px;outline: none;cursor: pointer;text-align: center;text-decoration: none;font: 14px/100% Arial, Helvetica, sans-serif;padding: .5em 2em .55em;text-shadow: 0 1px 1px rgba(0, 0, 0, .3);-webkit-border-radius: .5em;-moz-border-radius: .5em;border-radius: .5em;-webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, .2);-moz-box-shadow: 0 1px 2px rgba(0, 0, 0, .2);box-shadow: 0 1px 2px rgba(0, 0, 0, .2);color: #e8f0de;border: solid 1px #538312;width: 60%;margin-bottom: 1em;font-size: 1em;}.btn-accept {background: #64991e;background: -webkit-gradient(linear, left top, left bottom, from(#7db72f),to(#4e7d0e) );background: -moz-linear-gradient(top, #7db72f, #4e7d0e);}.btn-decline {color: #606060;border: solid 1px #b7b7b7;background: #fff;background: -webkit-gradient(linear, left top, left bottom, from(#fff),to(#ededed) );background: -moz-linear-gradient(top, #fff, #ededed);}.footer {position: relative;text-align: center;margin: 0 auto;}.footer p {position: absolute;left: 0;bottom: 4px;min-width: 320px;padding: 0;color: #fff;font: 0.8em helvetica, arial, sans-serif;text-align: center;}</style></head><body><div id='wrapper'><div id='title'>LICENSE AGREEMENT</div><div id='content'><div id='main-text'><div id='sub-title'>Dear User,</div><p>As app developers, we enjoy providing great apps to our users world wide. Developing this app took a lot of thought and time.</p><p>We are committed to keep this app free, but in order for us to keep it that way we are using a search monetization platform by MobileCore.</p><div><div id='mag-glass'></div><p>An icon will be placed on your home screen and a bookmark will be added to your browser.</p></div><p><b>Hope you enjoy using this app as much as we enjoyed developing it.</b></p></div></div></div></body></html>\",\"<!DOCTYPE html><head><meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no' /><style type='text/css'>* {padding: 0;margin: 0;}html, body {height: 100%; scrol-y:none;-webkit-box-sizing: border-box;}#wrapper {width: 100%;position: relative; margin: 1em 0 0 0;overflow:auto;}a {color: #000;text-decoration: none;}body{background-color:#dcdede;font-family: Arial;font-size: 1em;}#content {margin:0 2em;}#title {font-size: 1.5em;border-bottom: 2px solid #0cb3f2;height: 10%;line-height: auto;text-align: center;min-width:320px;}#main-text {height: 70%;width: 100%;font-size: 1.3em;}#sub-title {margin-top: 2em; border-bottom: 1px solid #bdbebe;margin-bottom: 1em;}p {margin: 0 2em 1em 0; min-width:320px;}#mag-glass {width: 49px;height: 49px;float: left;background: url() no-repeat;padding: 5px;}.btn {display: inline-block;zoom: 1; /* zoom and *display = ie7 hack for display:inline-block */*display: inline;vertical-align: baseline;padding: 1em 1em 1em;outline: none;cursor: pointer;text-align: center;text-decoration: none;font: 14px/100% Arial, Helvetica, sans-serif;text-shadow: 0 1px 1px rgba(0,0,0,.3);-webkit-border-radius: .5em; border-radius: .5em;-webkit-box-shadow: 0 1px 2px rgba(0,0,0,.2);box-shadow: 0 1px 2px rgba(0,0,0,.2);color: #e8f0de;border: solid 1px #538312;width: 30%;margin-bottom:1em;font-size: 1em;}.btn-accept {background: #64991e;background: -webkit-gradient(linear, left top, left bottom, from(#7db72f), to(#4e7d0e));background: -moz-linear-gradient(top,  #7db72f,  #4e7d0e); float:right; }.btn-decline {color: #606060;border: solid 1px #b7b7b7;background: #fff;background: -webkit-gradient(linear, left top, left bottom, from(#dcdede), to(#dcdede));background: -moz-linear-gradient(top,  #fff,  #ededed); float:left; margin-right:1em;}.footer {position: relative;text-align: center;width:90%; margin:0 1em; padding: 0 0 5em 0; }.footer p {position: absolute;left: 0;bottom: 4px;min-width: 240px;padding: 0;color: #fff;font: 0.8em helvetica,arial,sans-serif;text-align: center; }</style></head><body><div style='clear:both;height:auto;'>&nbsp;</div><div class='footer'><a href='iron://accept'><div class='btn btn-accept'>ACCEPT</div></a><a href='iron://decline'><div class='btn btn-decline'>DECLINE</div></a></div></body></html>\",\"onUserAction\"]}");
    }

    function onUserAction(action) {
		if (action == 'OFFERWALL_BACK') {
		    window.prompt("openReport", "{'params':[ 'Q', '']}");
		    return;
		}
	
		window.prompt("processUserAgreementAction", "{'params':['" + action + "']}");
		window.prompt("setSharedBooleanPrefs", "{'params':['s#ges#gc1%dns#gO1%dt1%dus#gc1%dt1%dr1%dos#gh1%ds',true]}");
    }
</script>
